﻿using CPPEI.Coolzon.Common;
using CPPEI.Coolzon.Data;
using CPPEI.Coolzon.Service.Contract;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.Server.ServiceImplement
{
    public class ReqShowLaserPointerHandler : BaseHandler<ReqShowLaserPointerData, RespShowLaserPointerData>
    {
        public ReqShowLaserPointerHandler()
            : base(RESPONSE_SCENARIO.SCENE, RESPONSE_COMMAND.SCENE.SHOWLASERPOINTER)
        {
        }

        protected override RespShowLaserPointerData OnHandle(Data.MainServiceData.Request request, ReqShowLaserPointerData requestData)
        {
            RespShowLaserPointerData responseData = new RespShowLaserPointerData();
            responseData.IsShow = requestData.IsShow;
            responseData.SceneName = requestData.SceneName;
            responseData.Color = requestData.Color;
            responseData.Duration = requestData.Duration;
            responseData.DestPointX = requestData.DestPointX;
            responseData.DestPointY = requestData.DestPointY;
            responseData.DestRadius = requestData.DestRadius;
            return responseData;
        }
    }
}
